package com.appkubes.mall.admin.application.goods.sku.service.impl;

import com.appkubes.mall.admin.application.goods.sku.dao.SpecificTemplateDao;
import com.appkubes.mall.admin.application.goods.sku.service.SpecificTemplateService;
import com.appkubes.mall.core.entity.MallSpecificTemplate;
import com.appkubes.mall.core.service.impl.BaseMallSpecificTemplateServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SpecificTemplateServiceImpl extends BaseMallSpecificTemplateServiceImpl implements SpecificTemplateService {
    @Autowired
    SpecificTemplateDao specificTemplateDao;

    public List<MallSpecificTemplate> getAll() {
        QueryWrapper<MallSpecificTemplate> queryWrapper = new QueryWrapper<>();
        queryWrapper.orderByDesc("template_index");
        return this.getBaseMapper().selectList(queryWrapper);
    }
}
